package clearBomb;

import javax.swing.ImageIcon;
import javax.swing.JButton;

public class RightClick {
	private JButton[][] map;
	private int x;
	private int y;	
	
	public RightClick(JButton [][]map,int x,int y){
		this.map = map;
		this.x = x;
		this.y = y;
	}
	
	ImageIcon BLockFlage = new ImageIcon("D:\\javanotes\\material\\images\\BlockFlagged.png");
	public void setFlag() {
		map[x][y].setIcon(BLockFlage);
		String str = "flag"+map[x][y].getActionCommand();
		map[x][y].setLabel(str);
	}
}
